import React, { Component } from 'react'

export default class child extends Component {
    state={
        // users:[
        //     {id:'001',name:'001'},
        //     {id:'002',name:'002'},
        //     {id:'003',name:'003'},
        // ]
        users:'abc'
    }
    render() {
        return (
            <div>
                <h2>child</h2>
                {
                    this.state.users.map((user)=>{
                        return <h5 key={user.id}>{user.name}</h5>
                    })
                }
            </div>
        )
    }
}
